filterIsInstanceToOption

inline fun <T> filterIsInstanceToOption(): Option<Either<L, T>>

Returns Some containing the same Right casted to type T if it is T. Otherwise returns None.

Return

Some containing the same Right casted to type T if it is T. Otherwise returns None.

Since

1.3

Parameters

T

Required type of the optional value.